$dir="platos/";
if ($handle2 = opendir($dir)){
while (false !== ($entry = readdir($handle2))){
$entry2 = strtoupper ($entry);
if ($entry != "." && $entry != "..") {
if ($plato == ""){
$plato = $entry;
}
if ($entry2 == strtoupper ($plato)){
echo "$entry ";
}
else{
echo "$entry ";
}
}
}
}
?>
|
"> |
$directorio=$dir.$plato."/";
$limiteInf=$indice+3;
$limiteSup=$indice+6;
$real=0;
if ($handle = opendir($directorio)){
while (false !== ($entry = readdir($handle)) && $fotos < $limiteInf) {
if ($entry != "." && $entry != ".."&& $entry != ".DS_Store") {
if ($entry != "data"){
$fotos++;
if ($fotos > $indice){
$real++;
include("./tablePlato.php");
if ($fotos != $limiteInf) echo ' | ';
}
}
}
}
if ($real == 0){ echo " | ";}
}
?>
|
if ($entry != ""){
if ($entry != "." && $entry != ".."&& $entry != ".DS_Store") {
if ($entry != "data"){
$real++;
include("./tablePlato.php");
echo ' | ';
$fotos++;
}
}
}
else{echo " | ";}
while (false !== ($entry = readdir($handle)) && $fotos< $limiteSup) {
if ($entry != "." && $entry != ".."&& $entry != ".DS_Store") {
if ($entry != "data"){
$fotos++;
if ($fotos > $indice){
$real++;
include("./tablePlato.php");
if ($fotos != $limiteSup) echo ' | ';
}
} }
}
if ($real == 0){ echo " | ";}
while ($fotos< $limiteSup) {
$fotos++;
if ($entry != ""){
if ($entry != "." && $entry != ".." && $entry != ".DS_Store") {
if ($entry != "data"){
include("./tablePlato.php");
}}}
if ($fotos != $limiteSup) echo ' | ';
}
closedir($handle);
?>
| = $real+2 || $real <= 5) echo "0"; else echo $indice+6; ?>"> |